Tight Bounds on the Complexity of Recognizing Odd-Ranked Elements

نویسنده

  • Shripad Thite
چکیده

Let S = 〈s1, s2, s3, ..., sn〉 be a given vector of n real numbers. The rank of z ∈ R with respect to S is defined as the number of elements si ∈ S such that si ≤ z. We consider the following decision problem: determine whether the oddnumbered elements s1, s3, s5, . . . are precisely the elements of S whose rank with respect to S is odd. We prove a bound of Θ(n logn) on the number of operations required to solve this problem in the algebraic computation tree model. Let S = 〈s1, s2, s3, . . . , sn〉 ∈ R n be a given vector. For an arbitrary real z, define the rank of z with respect to S, denoted by rankS(z), as the number of elements of S less than or equal to z. Thus, for instance, the largest element of S has rank n. Let odd(S) denote the set of elements of S whose rank with respect to S is odd. We consider the following problem: determine whether the odd-numbered elements s1, s3, s5, . . . are precisely the elements of S whose rank with respect to S is odd. Without loss of generality, we can assume that n is even because, otherwise, we can append an extra element +∞ without changing the answer. Note that odd(S) has size n/2 if and only if all n values si ∈ S are distinct; hence, the answer is ‘yes’ only if S is a vector of n distinct numbers. We prove matching upper and lower bounds on the number of operations required to solve the problem in the algebraic computation tree (ACT) model (see Ben-Or [1]). The following algorithm solves the problem using O(n logn) comparisons. Sort S ′ = 〈s1, s3, s5, . . . , sn−1〉 in non-decreasing order with an optimal sorting algorithm. Similarly, sort S in non-decreasing order. Then, scan the vector S ′ and the oddnumbered elements of S to decide whether the two are equal. Next, we prove the matching lower bound. For a vector S = 〈s1, s2, s3, . . . , sn〉, let σ(S) denote the permuted vector 〈sσ(1), sσ(2), sσ(3), . . . , sσ(n)〉. We call a permutation σ, where σ(i) is odd if and only if i is odd, a permissible permutation. Lemma 1. There are ((

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Shripad Thite Thesis: Spacetime Meshing for Discontinuous Galerkin Methods

s and Manuscripts [18] Tight Bounds on the Complexity of Recognizing Odd-Ranked Elements. Shripad Thite. Manuscript, 2006; arXiv:cs.CC/0606038 [19] On Covering a Graph Optimally with Induced Subgraphs. Shripad Thite. Manuscript, 2006; arXiv: cs.DM/0604013 [20] Adaptive Spacetime Meshing in 2D×Time for Nonlinear and Anisotropic Media. Shripad Thite, Jayandran Palaniappan, Jeff Erickson, Robert H...

متن کامل

On the edge geodetic and edge geodetic domination numbers of a graph

In this paper, we study both concepts of geodetic dominatingand edge geodetic dominating sets and derive some tight upper bounds onthe edge geodetic and the edge geodetic domination numbers. We also obtainattainable upper bounds on the maximum number of elements in a partitionof a vertex set of a connected graph into geodetic sets, edge geodetic sets,geodetic domin...

متن کامل

On the Query Complexity of Sets

There has been much research over the last eleven years that considers the number of queries needed to compute a function as a measure of its complexity. We are interested in the complexity of certain sets in this context. We study the sets If A = K or A is semirecursive, we obtain tight bounds on the query complexity of ODD A n and WMOD(m) A n. We obtain lower bounds for A r.e. The lower bound...

متن کامل

PERMUTATION GROUPS WITH BOUNDED MOVEMENT ATTAINING THE BOUNDS FOR ODD PRIMES

Let G be a transitive permutation group on a set ? and let m be a positive integer. If no element of G moves any subset of ? by more than m points, then |? | [2mp I (p-1)] wherep is the least odd primedividing |G |. When the bound is attained, we show that | ? | = 2 p q ….. q where ? is a non-negative integer with 2 < p, r 1 and q is a prime satisfying p < q < 2p, ? = 0 or 1, I i n....

متن کامل

On discriminativity of Zagreb indices

Zagreb indices belong to better known and better researched topological indices. We investigate here their ability to discriminate among benzenoid graphs and arrive at some quite unexpected conclusions. Along the way we establish tight (and sometimes sharp) lower and upper bounds on various classes of benzenoids.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/cs/0606038  شماره 

صفحات  -

تاریخ انتشار 2006